-- GENERATED SPELL FOR [Tempest-Forge Patroller] --


function spell0_19166(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(35011,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19166', 2000, 1)
end

function Sorts_19166(pUnit, Event)
local choix_sorts_19166 = math.random(0, 0)
if choix_sorts_19166 == 0 then
pUnit:RegisterEvent('spell0_19166', 1, 1)
end
end

function mob19166_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19166', math.random(1500, 3000), 1)
end

function mob19166_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19166_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19166_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19166, 1, 'mob19166_Action')
RegisterUnitEvent(19166, 2, 'mob19166_Leave')
RegisterUnitEvent(19166, 3, 'mob19166_Kill')
RegisterUnitEvent(19166, 4, 'mob19166_Die')
